# 查找端口占用进程
pid8848=$(lsof -i:8080 | grep LISTEN | awk '{print $2}')
if [ -n "$pid8848" ]; then
    # 停止进程
    kill -9 $pid8848
    echo "stop_8080 success"
else
    echo "8080端口未被占用"
fi

